package com.example.springsecurity.security;

import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @author wuancheng
 * @date 2024/6/20 22:20
 * @description 自定义passwordEncoder
 */
public class MyPasswordEncoder implements PasswordEncoder {
    @Override
    public String encode(CharSequence rawPassword) {
        return rawPassword.toString();
    }

    @Override
    public boolean matches(CharSequence rawPassword, String encodedPassword) {
        return true;
    }
}
